package {
	
	import alternativa.engine3d.materials.FillMaterial;
	import alternativa.engine3d.materials.TextureMaterial;
	import alternativa.engine3d.primitives.Box;
	
	import flash.display.BlendMode;

	public class Environment extends TextureLoader {
		
		public function Environment() {
			super("Environment");
			clonePropertiesFrom(new Box(50000, 50000, 50000, 1, 1, 1, true));
			//var material:TextureMaterial = new TextureMaterial(null, 1, false, true, BlendMode.NORMAL, -1, 0xFFFFFF);
			//cloneMaterialToAllSurfaces(material);
			addBinding(getSurfaceById("back"), "ressources/mur.jpg");
			load(test);
		}
		
		private function test():void {
			trace("c'est tout bon environement!");
		}
		
	}
}